<template>
	<view class="empty-content">
		<image class="empty-content-image" :src="setSrc" mode="aspectFit"></image>
		<view class="empty-txt">{{title}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			setSrc: {
				type: String,
				default: 'empty'
			},
			title: {
				type: String,
				default: '暂无'
			},
		},

		data() {
			return {
				
			}
		},

		computed: {
			
		}
	}
</script>

<style lang="scss">
	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		background: $page-color-base;
		padding-bottom: 120upx;

		&-image {
			width: 512rpx;
			height: 512rpx;
		}
		.empty-txt{
			font-size: 28rpx;
			font-weight: 400;
			color: #666666;
			line-height: 40rpx;
			margin-top: -80rpx;
			z-index: 5;
		}
	}
</style>
